//
//  AppDelegate.swift
//  flutterboost
//
//  Created by mno on 2019/9/10.
//  Copyright © 2019 mno. All rights reserved.
//

import UIKit
import Flutter

@UIApplicationMain
class AppDelegate : FLBFlutterAppDelegate{
    //var window: UIWindow?
   
     override func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplication.LaunchOptionsKey: Any]?) -> Bool {
        // Override point for customization after application launch.

        let router = DemoRouter.shared()
        FlutterBoostPlugin.init().startFlutter(with: router,onStart: { (fvc) in
        
        })
    
        self.window = UIWindow.init(frame: UIScreen.main.bounds)
        self.window?.makeKeyAndVisible()
        let vc=UIViewController.init(nibName: "UIViewControllerDemo", bundle: Bundle.main)

        let rvc=UINavigationController.init(rootViewController: vc)
        router.navigationController = rvc;
        self.window?.rootViewController = rvc;
        return super .application(application, didFinishLaunchingWithOptions: launchOptions)
    }
 

}


